PackageManagerCompat

Helper for accessing features in PackageManager.

Types

Link copied to clipboard
The status of Unused App Restrictions for this app.

Properties

Link copied to clipboard
val ACTION_PERMISSION_REVOCATION_SETTINGS: String = "android.intent.action.AUTO_REVOKE_PERMISSIONS"
Activity action: creates an intent to redirect the user to UI to turn on/off their permission revocation settings.
Link copied to clipboard
val LOG_TAG: String = "PackageManagerCompat"

Functions

Link copied to clipboard
open fun areUnusedAppRestrictionsAvailable(@NonNull packageManager: @NonNull PackageManager): Boolean
Returns whether any Unused App Restrictions are available on the device.
Link copied to clipboard
@Nullable
open fun getPermissionRevocationVerifierApp(@NonNull packageManager: @NonNull PackageManager): @Nullable String
Returns the package name of the one and only Verifier on the device that can support permission revocation.
Link copied to clipboard
@NonNull
open fun getUnusedAppRestrictionsStatus(@NonNull context: @NonNull Context): @NonNull ListenableFuture<Integer>
Returns the status of Unused App Restrictions for the current application.